import {Entity, PrimaryGeneratedColumn, Column, OneToMany,Index} from "typeorm";

// 加参数为表名称 @Entity('demo')  表名称为demo   默认表名为类名称
@Entity('carousel')
export class Carousel {
    // 主键自增唯一值
    @PrimaryGeneratedColumn()
    carousel_id: number;

    @Column()
    imgPath: string;

    @Column()
    describes: string;

    @Column()
    status: string;

    @Column()
    product_id: number;
}
